cc.Class({
    extends: cc.Component,

    properties: {
        sprite: {
           default: null,      // The default value will be used only when the component attaching                               // to a node for the first time
           type: cc.Prefab,  // optional, default is typeof default
           serializable: true, // optional, default is true
           visible: true,      // optional, default is true
           displayName: 'sprite', // optional
           readonly: false,    // optional, default is false
        },
        // ...
        number:0,
        _arr:[],
        _node:[],
    },

    // use this for initialization
    onLoad: function () {
		this._node.length=this.number;
		for(var i=0;i<this.number;i++){  
			this._node[i]=cc.instantiate(this.sprite);
			this._node[i].getComponent('bullet').angle=Math.random()*Math.PI*2;
			this._node[i].getComponent('bullet').velocity=300;
			this.node.addChild(this._node[i]);
		}
	},

    // called every frame, uncomment this function to activate update callback
	update: function (dt) {
		for(var i=0;i<this.number;i++){
        }
    },
});
